package org.shop.vo;

/**
 * 封装 Layui 动态表格需要的信息
 * code：状态码，0 表示正确
 * data：响应数据
 * count：当前查询的总记录数
 * @author ZJL
 * @date 2024-12-11
 */
public class PageVo extends ResponseData{
    /**
     * 当前查询的总记录数
     */
    private Long count;

    public PageVo() {

    }

    public PageVo(Long count) {
        this.count = count;
    }

    public PageVo(Integer code, Object data, Long count) {
        //在子类构造方法调用父类构造方法
        super(code, data);
        this.count = count;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "PageVo{" +
                "count=" + count +
                '}';
    }
}
